from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'ysna.auth.views.index'),
    url(r'^login/$', 'ysna.auth.views.Login'),
    url(r'^logout/$', 'ysna.auth.views.Logout'),
    url(r'^emailPass/$', 'ysna.auth.views.emailPass'),
    url(r'^register/$', 'ysna.auth.views.Register'),
    
    # Gets any static media files i.e. css, js, images ...
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    
    url(r'^createdata/$', 'ysna.auth.views.createDummyData'),
    
    url(r'^search/$', 'ysna.search.views.search'),
    url(r'^searchresults/$', 'ysna.search.views.search'),
    url(r'^editInfo/$', 'ysna.auth.views.editInfo'),
    
    
    url(r'^myprofile/', include('myprofile.urls')),
    url(r'^reg/', include('reg.urls')),
    url(r'^messaging/', include('messaging.urls')),
    url(r'^admins/', include('admins.urls')),
    
    # Examples:
    # url(r'^$', 'ysna.views.home', name='home'),
    # url(r'^ysna/', include('ysna.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
